<?php
/**
 * Created by PhpStorm.
 * User: sunzexin
 * Date: 2018/1/13
 * Time: 16:15
 */

namespace App\Http\Traits;


use Illuminate\Http\Request;

trait PartyCategoryTrait
{
    use BaseTrait;
    // 验证秘钥
    protected $loginSession;
    // 分类名称
    protected $name;
    // 分类封面
    protected $cover;
    // partner_id
    protected $partner_id;
    // 活动分类ID
    protected $party_category_id;
    // 合作者key
    protected $key;

    public function __construct(Request $request)
    {
        $this->loginSession = $request->input('loginSession', '');
        $this->name = $request->input('name', '');
        $this->cover = $request->input('cover', '');
        $this->partner_id = $request->input('partner_id', 0);
        $this->party_category_id = $request->input('party_category_id', 0);
        $this->key = $request->input('key', '');
    }
}